import axios from 'axios';
import Api from './ApiConfig';

//获取所有相关流程数据
export function getStepData(param) {
	return axios.get(Api.stepData+param);
}

//提交进场时间进场路线
export function postEnterTime(param) {
	return axios.post(Api.enterTime, param);
}

//提交施工计划内容
export function postCommitContent(param) {
	return axios.post(Api.savePlan, param);
}

//监理确认施工计划
export function getSupervisionCheck(param) {
	return axios.get(Api.supervisionCheck + param);
}

//确认通知
export function getCheckNotify(param) {
	return axios.get(Api.checkNotify + param);
}

//安检集结确认人员设备
export function getCheckPersonal(param) {
	return axios.get(Api.checkPersonal + param);
}	

//确认摆放标识界面
export function getCheckTip(param) {
	return axios.get(Api.checkTip + param);
}

//安检集结的安检确认
export function getCheckSecurity(param) {
	return axios.get(Api.checkSecurity + param);
}

//安检结束等待指挥部审批
export function getAwaitApproval(param) {
	return axios.get(Api.awaitApproval + param);
}

//结束施工
export function getEndStep(param) {
	return axios.get(Api.endStep + param);
}

//手动结束
export function getManualEnd(param) {
	return axios.get(Api.manualEnd + param);
}

//复查监理确认
export function getReviewSupervisionCheck(param) {
	return axios.get(Api.reviewSupervisionCheck + param);
}

//复查安检确认
export function getReviewSecurityCheck(param) {
	return axios.get(Api.reviewSecurityCheck + param);
}

//获取设备列表  参数待确认
export function postEquipment() {
	return axios.post(Api.getEquipment);
}

//提交应急事件
export function postEmergencyCommit(param) {
	return axios.post(Api.emergencyCommit, param)
}

//手机端登录接口
export function getLogin(param) {
	return axios.get(Api.loginUser + param)
}

//钉钉信息获取
export function getDingData(param) {
	return axios.get(Api.sign + param)
}

//获取权限
export function getRoleParam() {
	return axios.get(Api.getRoleParam)
}

// 确认收到消息接口
export function getReadMsg(param) {
	return axios.get(Api.readMsg + param)
}
